package com.zzt.zt_hilt.Module

import com.zzt.zt_hilt.factory.AnalyticsServiceImpl
import com.zzt.zt_hilt.inter.AnalyticsService
import dagger.Binds
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import javax.inject.Qualifier

/**
 * @author: zeting
 * @date: 2022/8/30
 */
@Module
@InstallIn(ActivityComponent::class)
object AnalyticsModule2 {

    @Qualifier
    @Retention(AnnotationRetention.BINARY)
    annotation class AuthInterceptorOkHttpClient

    @Qualifier
    @Retention(AnnotationRetention.BINARY)
    annotation class OtherInterceptorOkHttpClient

    @AuthInterceptorOkHttpClient
    @Provides
    fun provideAuthInterceptorOkHttpClient(
    ): OkHttpClient {
        return OkHttpClient.Builder()
            .build()
    }

    @OtherInterceptorOkHttpClient
    @Provides
    fun provideOtherInterceptorOkHttpClient(

    ): OkHttpClient {
        return OkHttpClient.Builder()
            .build()
    }
}